package com.health.teahouse.domain;


import java.util.List;

public class TreePojo {
    String id;
    String pid;
    String name;
    /**
     * 子对象
     */
    List<TreePojo> children;
    public TreePojo(String id, String pid, String name) {
        this.id = id;
        this.pid = pid;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "TreePojo{" +
                "id='" + id + '\'' +
                ", pid='" + pid + '\'' +
                ", name='" + name + '\'' +
                ", children=" + children +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TreePojo> getChildren() {
        return children;
    }

    public void setChildren(List<TreePojo> children) {
        this.children = children;
    }
}


